﻿using Coldairarrow.Util;
using Furion;
using SqlSugar;
using System;

namespace Admin.Core
{
    /// <summary>
    /// 审计日志
    /// </summary>
    [SugarTable("Sys_Audits")]
    public class SysAudits: SugarEntity<string>
    {
        public SysAudits()
        {
            Id = IdHelper.GetId();
            CreatorId = App.User.FindFirst("UserId")?.Value;
            CreatedTime = DateTime.Now;
        }
        /// <summary>
        /// 操作名称
        /// </summary>
        public String Title { get; set; }
        /// <summary>
        /// Sql语句
        /// </summary>
        public String SqlContent { get; set; }
        /// <summary>
        /// 语句参数
        /// </summary>
        public String Parameter { get; set; }
        /// <summary>
        /// 新值
        /// </summary>
        public String NewValue { get; set; }
        /// <summary>
        /// 旧值
        /// </summary>
        public String OldValue { get; set; }
        /// <summary>
        /// 操作类型
        /// </summary>
        public String Operate { get; set; }
    }
}
